//package com.csx.orm.mybatisplus.injector;
//
//import com.baomidou.mybatisplus.core.injector.AbstractMethod;
//import com.baomidou.mybatisplus.core.injector.AbstractSqlInjector;
//import com.baomidou.mybatisplus.core.metadata.TableInfo;
//import org.apache.ibatis.mapping.MappedStatement;
//import org.apache.ibatis.mapping.SqlSource;
//
//import java.util.List;
//
///**
// * <p> what does this class do ? </p>
// * <p> How does it work ?</p>
// * <p> Why does it do this ?</p>
// *
// * @author cuisongxu
// * @date 2023/8/25 周五 15:21
// */
//public class CustomSqlInjector extends AbstractMethod  {
//
//    /**
//     * @param methodName 方法名
//     * @since 3.5.0
//     */
//    protected CustomSqlInjector(String methodName) {
//        super(methodName);
//    }
//
//    @Override
//    public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
//        String sql = "SELECT COUNT(1) FROM " + tableInfo.getTableName();
//        String method = "countByCustom";
//        SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass);
//        return addSelectMappedStatementForOther(mapperClass, method, sqlSource, Long.class);
//    }
//}
